/**
 * <p>Title:MonitorTaskDecorator  </p>
 * <p>Description： TODO</p>
 * Package: com.travelsky.aic.data.jobs.agentmonitor.util.task
 * Copyright: Copyright(c) 2020 Travelsky All Rights Reserved
 * Company: Travelsky
 * Software: AIC
 * Date: 2021/1/15 9:32
 *
 * @author yanwen
 * @version 1.0.0
 */
package com.xiaoma.thread.pool;


@FunctionalInterface
public interface MonitorTaskDecorator {

  /**
   * Decorate the given {@code Runnable}, returning a potentially wrapped
   * {@code Runnable} for actual execution.
   * @param runnable the original {@code Runnable}
   * @return the decorated {@code Runnable}
   */
  Runnable decorate(Runnable runnable);

}
